package com.zoey.app.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zoey.app.service.ClassesService;
import com.zoey.domain.po.ClassesPO;
import com.zoey.subs.dao.mappers.BdExpClassesMapper;
import org.omg.PortableServer.POA;
import org.springframework.stereotype.Service;
import org.springframework.util.StopWatch;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author GSX
 * @since 2023-06-18 07:00:34
 */
@Service
public class ClassesServiceImpl extends ServiceImpl<BdExpClassesMapper, ClassesPO> implements ClassesService {
    public ClassesPO test(){
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("查询课程信息");
        ClassesPO byId = getById("2");
        stopWatch.stop();
        System.out.println("stopWatch.getLastTaskTimeMillis() = " + stopWatch.getLastTaskTimeMillis());
        System.out.println("stopWatch.prettyPrint() = " + stopWatch.prettyPrint());
        System.out.println(byId);
        return byId;
    }
}
